#!/usr/bin/python3
# _*_ coding: utf-8 _*_
#
# Copyright (C) 2024 - 2024 heihieyouheihei, Inc. All Rights Reserved 
#
# @Time    : 2024/9/22 8:50
# @Author  : Yuyun
# @File    : 字符串处理_输入二维数组字符串转为二维数组.py
# @IDE     : PyCharm


nums = eval(input())
#   行数量
row_number = len(nums)
#   列数量
column_number = len(nums[0]) if nums[0] else 0  #   默认输入每行的列数都相同

for row in nums:
    if not row:
        continue
    column_number = max(column_number, len(row))    #   每行的列数不同，统计最大的列数

print(nums, type(nums), row_number, column_number)